jQuery(document).ready(function(){ 

window.onload = function() { 
	window.postMessage(document.body.scrollHeight,"*");
	jQuery( window ).resize( function () { window.parent.postMessage(document.body.scrollHeight,"*"); }).resize();	// on change
	jQuery('html,body').bind('heightChange', function(){ });
}; 

});

	// onload resize
function resizeIframe() { window.parent.postMessage(document.body.scrollHeight,"*"); }
function scrollFrameHeight(heightVar) { window.parent.postMessage("scroll-"+heightVar, '*'); }
 function getCookie(cname) {
	var name = cname + "=";
	var ca = document.cookie.split(';');
	for(var i=0; i<ca.length; i++) 
	{
	var c = ca[i].replace(/\s/g, "");
	if (c.indexOf(name)==0) return c.substring(name.length,c.length);
	}
	return "";
   }